import { ApiProperty, PartialType } from '@nestjs/swagger';
import { IsOptional } from 'class-validator';
import { CreateCarModelDto } from './create-car_model.dto';

export class FindAllCarModelDto extends PartialType(CreateCarModelDto) {
  @ApiProperty({
    description: '每页条数',
    default: 10,
  })
  @IsOptional()
  limit?: number;

  @ApiProperty({
    description: '当前页数',
    default: 1,
  })
  @IsOptional()
  page?: number;
}
